package com.ryoma.model;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import java.util.Date;


// 考勤信息
public class Attendance {
    private long id;

    private String e_type;

    private long staff_id;

    private long check_id;

    private long check_time;

    private String verify;

    private String userid;

    private long device_type;

    private JSONArray check_point;

    private String point;

    private String description;

    private String point_title;

    private String point_content;

    private String images;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getE_type() {
        return e_type;
    }

    public void setE_type(String e_Type) {
        this.e_type = e_Type;
    }

    public long getStaff_id() {
        return staff_id;
    }

    public void setStaff_id(long staff_id) {
        this.staff_id = staff_id;
    }

    public long getCheck_id() {
        return check_id;
    }

    public void setCheck_id(long check_id) {
        this.check_id = check_id;
    }

    public long getCheck_time() {
        return check_time;
    }

    public void setCheck_time(long check_time) {
        this.check_time = check_time;
    }

    public String getVerify() {
        return verify;
    }

    public void setVerify(String verify) {
        this.verify = verify;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public long getDevice_type() {
        return device_type;
    }

    public void setDevice_type(long device_type) {
        this.device_type = device_type;
    }

    public JSONArray getCheck_point() {
        return check_point;
    }

    public void setCheck_point(JSONArray check_point) {
        this.check_point = check_point;

       for(int i = 0 ;i<check_point.size();i++){
           JSONObject rowData = check_point.getJSONObject(i);
           this.point = rowData.getString("point");
           this.description = rowData.getString("description");
           this.point_title = rowData.getString("point_title");
           this.point_content = rowData.getString("point_content");
           this.images = rowData.getString("images");
       }
    }

    public String getPoint() {
        return point;
    }

    public void setPoint(String point) {
        this.point = point;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPoint_title() {
        return point_title;
    }

    public void setPoint_title(String point_title) {
        this.point_title = point_title;
    }

    public String getPoint_content() {
        return point_content;
    }

    public void setPoint_content(String point_content) {
        this.point_content = point_content;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }
}